﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Erik/Erik.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div>
        <div id="blogItems">
        <% 
            foreach (DerptelligenceSite.Models.Erik.BlogItem item in (IEnumerable<DerptelligenceSite.Models.Erik.BlogItem>)ViewData["blogItems"])
            { %>
            <div class="blogItem">
                <h1 class="Title"><a href="../Erik/Item?id=<%: item.ID %>"><%: item.Title %></a></h1>
                <p class="Date"><%: item.PublishDate %></p>
                <div class="Content">    <%= item.HTML %></div>
            </div>
            <%}%>
        </div>
    </div>
</asp:Content>